

angular.module('theApp.myroutes', [])

.config(['$routeProvider', function($routeProvider) {
    $routeProvider
    
       

        // Init app specific
        .when("/all"            ,   {templateUrl: "pages/view1.html"   , controller: "allController"})   

        .when("/schedule/:fid/:tid" ,   {templateUrl: "pages/schedules.html" , controller: "scheduleController"})   
        .when("/user/:id"           ,   {templateUrl: "pages/view1.html"    , controller: "userController"})
        .when("/team/:id"           ,   {templateUrl: "pages/view1.html"    , controller: "teamController"})
        .when("/request/:id"        ,   {templateUrl: "pages/view1.html"    , controller: "requestController"})
        .when("/field/:id"          ,   {templateUrl: "pages/view1.html"    , controller: "fieldController"})

        .when("/create/team/:id"     ,   {templateUrl: "pages/view1.html", controller: "teamControllerCreate"})
        .when("/create/request/:id"  ,   {templateUrl: "pages/view1.html", controller: "requestControllerCreate"})
        .when("/create/field"        ,   {templateUrl: "pages/view1.html", controller: "fieldControllerCreate"})
        //.when("/create/user"         ,   {templateUrl: "pages/view1.html", controller: "userControllerCreate"})

        .when("/server"     , {templateUrl: "pages/server.html", controller: "serverController"})

        .when("/test"     , {templateUrl: "pages/test.html", controller: "testController"});
        // end app specific

}])


;

